package com.jspgou.cms.entity;

import com.jspgou.cms.entity.Message;
import com.jspgou.cms.entity.base.BaseReceiverMessage;
import com.jspgou.common.util.StrUtils;



public class ReceiverMessage extends BaseReceiverMessage {
	private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
	public ReceiverMessage () {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public ReceiverMessage (java.lang.Integer id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public ReceiverMessage(
			java.lang.Integer id,
			com.jspgou.cms.entity.ShopMember msgReceiverUser,
			com.jspgou.cms.entity.ShopMember msgSendUser,
		    java.lang.String msgTitle,
			java.lang.String msgContent, 
			java.util.Date sendTime,
			boolean msgStatus,
			java.lang.Integer msgBox) {

		super(id, msgReceiverUser, msgSendUser, msgTitle, msgContent,
				sendTime, msgStatus, msgBox);
	}

	public ReceiverMessage(Message message) {
		super(message.getId(), message.getMsgReceiverUser(), message
				.getMsgSendUser(),message.getMsgTitle(),
				message.getMsgContent(), message.getSendTime(), message
						.getMsgStatus(), message.getMsgBox());
	}
	public String getTitleHtml() {
		return StrUtils.txt2htm(getMsgTitle());
	}
	public String getContentHtml() {
		return StrUtils.txt2htm(getMsgContent());
	}

	/*[CONSTRUCTOR MARKER END]*/
	
}